import hashlib
import time
# 获取加密对象
md5obj = hashlib.md5()
str_obj = 'abc123'

md5obj.update(str_obj.encode())
s = md5obj.hexdigest()
print(s)

print(time.time())
# 时间戳
now_time = time.time()

c_time = str(now_time).split('.')[0]

# 字符串拼接
sign = str_obj + c_time
# 编码
se = sign.encode(encoding='utf-8')

md5obj.update(se)

ss = md5obj.hexdigest()
print(ss)
